package com.healthcloud.dao.screening;

import com.healthcloud.dao.BaseDao;
import com.healthcloud.entity.screening.ScreeningBsEntity;
import com.healthcloud.entity.screening.ScreeningBsVo;
import com.healthcloud.utils.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 血糖筛查
 * @author zhangjie
 */
public interface ScreeningBsDao extends BaseDao<ScreeningBsEntity> {

    ScreeningBsEntity queryByIdCard(String idCard);

    List<ScreeningBsVo> queryListVo(@Param("entity") ScreeningBsVo entity, @Param("pageParam") PageParam pageParam);

    Integer queryTotalVo(@Param("entity") ScreeningBsVo entity);

    ScreeningBsEntity monthReport(@Param("reportTime") String reportTime, @Param("idCard") String idCard);

    /**
     * 修改病人身份证号
     * @param oldIdCard 修改前身份证号
     * @param newIdCard 修改后身份证号
     */
    void updateIdCard(@Param("newIdCard") String newIdCard, @Param("oldIdCard") String oldIdCard);
}
